package com.zsh.webfluxdemo1.service;

import com.zsh.webfluxdemo1.entity.User;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * @author zsh
 * @Description 用户接口
 * @create 2022-03-07 19:26
 */
public interface UserService {
    //根据Id查用户
    Mono<User> getUserById(int id);

    //查询所有用户
    Flux<User> getAllUser();

    //添加用户
    Mono<Void> saveUserInfo(Mono<User> user);
}
